package com.gxa.meiye.admin.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

public interface FileUpLoadService {
    /**
     * 处理浏览器文件上传请求
     * @param multipartFile
     * @return
     */
    String upload(MultipartFile multipartFile) throws JsonProcessingException;

    /**
     * 处理普通文件上传
     * @param file
     * @return
     */
    String upload(File file);
    /**
     * 将图片地址写入数据库
     * @param
     * @return
     */

}
